﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.TeamFoundation.Client;

namespace TeamFoundation.EventBus.Client.Events
{
    /// <summary>
    /// Represents an object that can be translated to an
    /// object relevant to a <see cref="TeamFoundationServer"/>.
    /// </summary>
    public interface ITfsTranslatable
    {
        /// <summary>
        /// Translates the object into an
        /// object relevant to a <see cref="TeamFoundationServer"/>.
        /// </summary>
        /// <param name="tfs">The <see cref="TeamFoundationServer"/>.</param>
        /// <returns>The translated object.</returns>
        object Translate(TeamFoundationServer tfs);
    }
}
